package dao;

import entity.FilmInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FilmInfoDao {

    public List<FilmInfo> getFilminfos();

    public List<FilmInfo> getFilminfosBYCondition(@Param("info") FilmInfo info);

    public List<FilmInfo> getFilminfosBYCondition2(@Param("choice") String choice);

    public List<FilmInfo> getFilminfosBYCondition3(Integer[] typeids);

    public List<FilmInfo> getFilminfosBYCondition4(List typeids);



    //分页显示
    public int getcount();
    public List<FilmInfo> getFilmInfoByPager(@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize);


    public int getcount2(@Param("info") FilmInfo info);
    public List<FilmInfo> getFilmInfoByPager2(@Param("info") FilmInfo info,@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize);


    public  int delFilm(Integer filmid);
    public  int addFilm(@Param("info") FilmInfo info);

    public  int updateFilm(@Param("info") FilmInfo info);
}
